﻿@using Models.WebSite_HaiSheng
@model List<JobApply>
@*@(Html.Telerik().Grid<JobApply>().ClientEvents(e => e.OnError("bindingError")).Name("JobApply").DataBinding(databinding => databinding.Ajax().Select("AjaxJobApplyIndex", "JobApply"))
                .DataKeys(keys =>
                {
                    keys.Add(s => s.ID);
                })
                .Columns(c =>
                {
                    c.Bound(item => item.User).Width(200);
                    c.Bound(item => item.WorkingExperience).Width(200);
                    c.Bound(item => item.ExpectedSalary).Width(150);
                    c.Bound(item => item.ID).Title("操作").ClientTemplate("<a href='/Recruitment/edit/" + "<#= ID #>'>编辑</a> | <a href='/Recruitment/details/" + "<#= ID #>'>详细</a> | <a href='/Recruitment/delete/" + "<#= ID #>'>删除</a>"); 
                   })
                .DetailView(details => details.ClientTemplate(
                                            Html.Telerik().Grid<JobApply>().Name("JobApply<#= ID #>")
                                        .Columns(columns =>
                                        {
                                            columns.Bound(item => item.Applyer);
                                            columns.Bound(item => item.Cetification);
                                            columns.Bound(item => item.ID).Title("操作").ClientTemplate("<a href='/JobApply/edit/" + "<#= ID #>'>编辑</a> | <a href='/JobApply/details/" + "<#= ID #>'>详细</a> | <a href='/JobApply/delete/" + "<#= ID #>'>删除</a>");
            
                                        })
                                            .DataBinding(dataBinding => dataBinding.Ajax().Select("AjaxJobApplyIndex", "JobApply", new { RecruitmentId = "<#= ID #>" }))
                                        .Pageable().Sortable().Filterable().ToHtmlString()))
                .Resizable(resizing => resizing.Columns(true))
                .Pageable(p => p.PageSize(20))
                .Sortable()
                .Scrollable(scrolling => scrolling.Height(350))
)*@

@(Html.Telerik().Grid<JobApply>(Model).Name("JobApply")
                .DataKeys(keys =>
                {
                    keys.Add(s => s.ID);
                })
                .Columns(c =>
                {
                     c.Bound(item => item.User).Width(200);
                    c.Bound(item => item.WorkingExperience).Width(200);
                    c.Bound(item => item.ExpectedSalary).Width(150);
                    c.Bound(item => item.ID).Title("操作").Template(@<span>
                    <a href=@Url.Content("~/JobApply/Edit/" + item.ID) >编辑</a> | <a href=@Url.Content("~/JobApply/Details/" + item.ID)>详细</a> | <a href=@Url.Content("~/JobApply/delete/" + item.ID) >删除</a> 
                   </span>);
                })
                .Resizable(resizing => resizing.Columns(true))
                .Pageable(p => p.PageSize(20))
                .Sortable()
                .Scrollable(scrolling => scrolling.Height(350))
)


